﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Configuration;

namespace AUV5.Web
{
    public class PageBaseService : PageBaseTop
    {
        /// <summary>
        /// 公钥
        /// </summary>
        public readonly string public_key = System.Configuration.ConfigurationManager.AppSettings["service_secret"];
        public readonly bool secretkey_enable = System.Configuration.ConfigurationManager.AppSettings["service_secret_enable"]=="true";
        public readonly string current_day = DateTime.Now.ToString("yyyyMMdd");
        protected void Page_PreInit(object sender, EventArgs e)
        {
            try
            {
                //this.Theme = "Default";
            }
            catch (Exception)
            {
                throw;
            }
        }

        protected override void OnPreInit(EventArgs e)
        {
            //base.OnPreInit 触发 Page_PreInit
            base.OnPreInit(e);
            //this.Theme = "Default";
        }

        protected void Page_PreLoad(object sender, EventArgs e)
        {
            
        }

        protected override void OnPreLoad(EventArgs e)
        {
            //base.OnPreLoad 触发 Page_PreLoad
            base.OnPreLoad(e);
        }        
    }
}